<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>
<%@page import="javax.servlet.http.HttpSession"%>
<%@ page import="com.library.entity.Administrator" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html lang="en">
  <tag:head title="找回密码" ctx="${ctx}">
    <link href="${ctx}/assets/css/login/style.css" rel="stylesheet"> <!-- 页面特定的css-->
  </tag:head>
  <body>
    <div class="l-head">
      <img class="title-img" src="${ctx}/assets/images/title-img.png" />
    </div>

    <div class="main-contain">
      <h2>找回密码</h2>
      <form action="${ctx}/">
        <input type="text" class="form-control" name="username" placeholder="用户名" required="required" />
        <div class="radio">
          <label><input type="radio"  name="role" value="0" checked> 员工</label>
          &nbsp;&nbsp;&nbsp;
          <label><input type="radio"  name="role" value="1"> 管理员</label>
        </div>
        <div class="">
          <input type="text" name="emailCode"  style="width: 100px;"/>
          <a id="sendEmail" href='javascript:void(0);'  onclick="sendEmail()" style="color:#2a3f54">发送邮件</a>
        </div>
      </form>
      <a id="" class="pull-right" ata-toggle='modal'  href='${ctx}/login.jsp'  onclick="" style="color:#2a3f54">去登录</a>
      <button id="submit" type="button" class="btn btn-default submit" href="#">找回密码</button>

    </div>

  </body>
    <!-- jQuery -->
    <script src="${ctx}/assets/js/jquery/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="${ctx}/assets/js/bootstrap/bootstrap.min.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="${ctx}/assets/js/custom/custom.min.js"></script>
    <!-- PNotify -->
    <script src="${ctx}/assets/js/pnotify/pnotify.js"></script>
    <!-- Global funtions -->
    <script src="${ctx}/assets/js/global_function/global_function.min.js"></script>
    <!-- this page -->
    <script src="${ctx}/assets/js/findPassword/findPassword.js"></script>
    <script>
      <c:if test="${requestScope.error != null}">
          createPNotify("提示信息","error","${requestScope.error}");
      </c:if>
      <c:if test="${requestScope.success != null}">
        createPNotify("提示信息","success","${requestScope.success}");
      </c:if>
    </script>
  </body>
</html>
